Discover tar all files in directory, include the articles, news, trends, analysis and practical advice about tar all files in directory on alibabacloud.com
Packaging Example: package files in the /usr/local/src/zlib-1.2.5 directory into zlib-1.2.5.tar.gzCD/USR/LOCAL/SRCTAR-CZVF./zlib-1.2.5.tar.gz/zlib-1.2.5/*# compressed into the development directory (for example:/root/2/) tar-czvf/root/2/
Original English meaning: tape archive
Chinese meaning: tape ArchivingNoteSolution: A file packaging tool in Unix/Linux is used to pack many files together to form an archive file for archiving. It was originally designed for tape backup and can now
This paper mainly from the following several convenient to explain file archiving and compression, while comparing the compression ratios and characteristics of several different compression methods.
File Archive command tar,tar.gz source
The most common packaging program under Linux is tar, which is often referred to as the TAR package, and the tar package file commands are usually terminated with. Tar. After the tar package is generated, it can be compressed with other programs, so
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )---------------------------------------------. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip
Analysis of compressed files under LinuxFor those who have just come into contact with Linux, it will definitely give Linux a bunch of different filenames to stun. Don't say it. For example, for compressed files, we know that there are only two
The tar command in Linux
The TAR (tape archive) command is a command that is often used in Linux systems to deposit files into an archive file.
The common file extensions include:. tar.gz and. tar.bz2, respectively, to express the further
Summarizes the compression and decompression methods of compressed packets in various formats under Linux. But some of the methods I did not use, but also not all, I hope you can help me to add, I will revise the perfect at any time, thank you!. Tar
Packing the compressed directory is very simple as follows
The code is as follows
Copy Code
TAR-CZF small.tar.gz Small (directory name), compressing and packaging catalogs
More examples
The code is
TARCommand nameThe GNU version of the tar-tar file management program. The following sections describe their meanings one by one.OverviewTar [-] A -- catenate -- concatenate | c -- create | d -- diff -- compare | r -- append | t -- list | u --
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.